/*
  Name: DeadProxyProtocol.h
  Copyright: 
  Author: Carl Chatfield
  Date: 22/01/08 12:25
  Description: Implementation of tibias protocol
*/

#ifndef __DEADPROXYPROTOCOL_h__
#define __DEADPROXYPROTOCOL_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

#include "DeadProxyDefinitions.h"
#include "DeadProxyPacketBuffer.h"


class Protocol
{
    private:
        void * pClient;
        PacketBuffer * packet;
    public:
        
        void ParsePacket(PacketBuffer * pack);
        bool ParseGameMsg();
        void TestMap();
        
        void ParsePlayerStats();
        void ParsePlayerSkills();
        void ParseMapDescription(int w, int h, int startx, int starty, int posz);
        void ParseFloorDescription(int w, int h, int startx, int starty, int startz, unsigned int * skip);
        void ParseTileDescription(int x, int y, int z);
        Thing * ParseThingDescription();
        Protocol(void * ClientPtr);
};

#endif
